package com.netnovelstore.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString
public class Order implements Serializable {
    @NotBlank(message = "订单号不能为空")
    @Size(max = 20)
    private String traceNo;
    @NotBlank(message = "物品不能为空")
    private String subject;
    @NotNull(message = "金额不能为空")
    private Integer totalAmount;
    private Double buyerPayAmount;
    private String tradeStatus;
    private String buyerId;
    private String gmtPayment;
    private Integer userNumber;
}
